package com.example.arithmeticleetcode.leetcode.october;

/**
 * @program: arithmetic-leetcode
 * @description:
 * @author: FangZhen
 * @create: 2020-10-21 15:57
 **/
public class Demo12 {

    public static void main(String[] args) {
        test(6);
    }

    private static void test(int i) {
        System.out.println("test第一次--------------" + i);
        if (i < 0) {
            System.out.println("i==0 退出");
            return;
        }
        System.out.println("test第二次+++++++" + i);
        test(--i);
        System.out.println("test第三次====" + i);
        System.out.println("test第四次--" + i);
    }
}
